package com.chen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 学生表
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "student")
public class Student {

    /**
     * 学生id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 学生名
     */
    @TableField(value = "name")
    private String name;

    /**
     * 学生账号
     */
    @TableField(value = "account")
    private String account;

    /**
     * 学生密码
     */
    @TableField(value = "pwd")
    private String pwd;

    /**
     * 关联班级
     */
    @TableField(value = "classes_id")
    private Integer classesId;

}
